<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="common/common.jsp"%> 
<c:set var="flexPath" value="${resourcePath}flexpaper/"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>FlexPaper</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport"
	content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width" />
<style type="text/css" media="screen">
html,body {
	height: 100%;
}
body {
	margin: 0;
	padding: 0;
	overflow: auto;
}
#flashContent {
	display: none;
}
#documentViewer{
width: 1140px; 
height: 680px
}
</style>
<link rel="stylesheet" type="text/css" href="${flexPath}css/flexpaper.css" />
<script type="text/javascript" src="${flexPath}js/jquery.min.js"></script>
<script type="text/javascript" src="${flexPath}js/flexpaper.js"></script>
<script type="text/javascript" src="${flexPath}js/flexpaper_handlers.js"></script>
<title>文档在线预览系统</title>
</head>
<body>
	<div style="margin:0 auto;padding:0px;width:1140px;height:680px;">
		<div id="documentViewer" class="flexpaper_viewer"></div>	
	</div>
	<script type="text/javascript">
	var startDocument = "Paper";
			    $('#documentViewer').FlexPaperViewer(
			            { config : {
			                SWFFile : encodeURI('${swfpath}'),//编码设置
			                Scale : 0.6,
			                ZoomTransition : 'easeOut',
			                ZoomTime : 0.5,
			                ZoomInterval : 0.2,//缩放滑块-移动的缩放基础[工具栏]
			                FitPageOnLoad : true,//自适应页面
							FitWidthOnLoad : true,//自适应宽度
			                FullScreenAsMaxWindow : false,
			                ProgressiveLoading : false,
			            	MinZoomSize : 0.2,//最小缩放
							MaxZoomSize : 3,//最大缩放
			                SearchMatchAll : false,
			                InitViewMode : 'Portrait',
			                RenderingOrder : 'flash,html',
			                StartAtPage : '',
			              //InitViewMode : 'Portrait',//初始显示模式(SinglePage,TwoPage,Portrait)
			                ViewModeToolsVisible : true,//显示模式工具栏是否显示
			                ZoomToolsVisible : true,//缩放工具栏是否显示
			                NavToolsVisible : true,//跳页工具栏
			                CursorToolsVisible : true,
			                SearchToolsVisible : true,
			                WMode : 'window'
			            }}
			    );
        </script>
</body>
</html>